<!-- $Id: user_account_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{include file="pageheader.htm"}
{insert_scripts files="validator.js"}
<div class="main-div">
  <form action="user_account_type.php" method="post" name="theForm" onsubmit="return validate()">
    <table width="100%">
      <tr>
        <td class="label">充值金额：</td>
        <td>
          <input type="text" name="money" value="{$vo.money}" size="20"/>
        </td>
      </tr>
      <tr>
        <td class="label">奖励金额：</td>
        <td>
          <input type="text" name="prize" value="{$vo.prize}" size="20"/>
        </td>
      </tr>
      <tr>
        <td class="label">排序：</td>
        <td>
          <input type="text" name="sort" value="{$vo.sort}" size="20"/>
        </td>
      </tr>
      <tr>
        <td class="label">描述：</td>
        <td>
          <textarea name="name" cols="55" rows="3" >{$vo.name}</textarea>
        </td>
      </tr>
      <tr>
        <td class="label">&nbsp;</td>
        <td>
          <input type="hidden" name="id" value="{$vo.id}" />
          <input type="hidden" name="act" value="{$form_act}" />
          {if $user_surplus.process_type eq 0 || $user_surplus.process_type eq 1}
          <input type="submit" value="{$lang.button_submit}" class="button" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
          {/if}
        </td>
      </tr>
    </table>
  </form>
</div>

<script language="JavaScript">
    <!--
    {literal}
    onload = function()
    {
        // 开始检查订单
        startCheckOrder();
    }

    /**
     * 检查表单输入的数据
     */
    function validate()
    {
        validator = new Validator("theForm");

        validator.required("money",    '请输入充值金额');
        validator.isNumber("money",    '请输入正确的充值金额', true);

        validator.required("prize",    '请输入奖励金额');
        validator.isNumber("prize",    '请输入正确的奖励金额', true);
        var deposit_amount = document['theForm'].elements['money'].value;
        if (deposit_amount.length > 0)
        {
            if (deposit_amount == 0 || deposit_amount < 0)
            {
                alert(deposit_amount_error);
                return false;
            }
        }

        return validator.passed();
    }

    //-->
    {/literal}
</script>
{include file="pagefooter.htm"}